/*px em rem 等长度单位演示*/

html{
    font-size: 62.5%;/*16px*0.625=10px*/
}

body{
    font-size: 1.2em;
}

.value_px{
    font-size: 32px;
}
.value_em{
    font-size: 2em;
}
.value_rem{
    font-size: 2rem;
}
/* 颜色值*/
.color_name{
    color:red;
}
.color_hex{
    color:#abc;
}
.color_fun{
    color: rgb(0,0,255);
}
/*图片函数url*/
.img_url{
    width: 368px;
    height: 255px;
    background-image: url("qq.jpg");
    font-weight: bolder;
    border: 1px solid;
}
/*常见字体演示属性*/
.font_demo{
    /* font:400; */
    color: aqua;
    font-family:"宋体", Arial, Helvetica, sans-serif,serif,monospace;
    font-size: 2em;
    font-style: italic;
    font-weight: bolder;
}
/* 常见文本样式属性 */
.text_demo{
    font-size: 2em;
    border: 1px solid black;
    width: 30rem;
    height: 30rem;
    text-align:center;
    line-height: 100px;
    text-decoration:line-through;
    text-indent: 3rem;
    letter-spacing: 1em;
    word-spacing: 1rem;
}
/* 类表样式属性 */
ul{
    font-size: 2em;
}
.list_demo1{
    list-style:square inside;
}
.list_demo2{
    list-style: none;
}
.list_demo3{
    list-style-image:url(qq.jpg) ;
    list-style-type: none;
    list-style-position: inside;
}
.list_demo4{
    list-style: none url(qq.jpg) inside;
}
/* 背景样式属性 */
.bg_box{
    border: 1px solid red;
    width: 40rem;
    height: 30rem;
}
.bg_demo1{
    background-color:#fff041;
}
.bg_demo2{
    background-image: url(qq.jpg);
}
.bg_demo3{
    background-image: url(qq.jpg);
    /* background-repeat: no-repeat; */
    background-repeat: repeat-y;
}
.bg_demo4{
    background-image: url(qq.jpg);
    background-repeat: no-repeat;
    background-position: center bottom;
}
.bg_demo5{
    background-image: url(qq.jpg);
    background-repeat: no-repeat;
    background-position: top right;
    background-attachment: scroll;
}
.bg_demo6{
    background: #abc url(qq.jpg) repeat-x top right fixed;
}
/* 表格样式 */
.caption{
    font-size: 2.5rem;
}

.table_demo{
    font-size: 2rem;
    border:1px solid #000000 ;
    width: 70%;
    margin: 0 auto;
    table-layout: fixed;
    border-spacing: collapse;
    border-collapse: separate;
    caption-side: top;
    empty-cells: hide;
}
.table_demo th, .table_demo td{
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    text-align: center;
}
.table_demo thead{
    background-color: #fff041;
    color: white;
}
.table_demo tbody tr:hover{
    background:white;
    cursor: pointer;
}
.table_demo tfoot td{
    text-align: right;
    padding-right: 2em;
}
/* 表单样式 */
.form_demo{
    font-size: 1.4rem;
    border: 1px solid seagreen;
    background: #fff;
    width: 35rem;
    height: 20rem;
}
.form_demo input[type="text"],.form_demo input[type="password"]{
    height: 39px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    width: 200px;
    padding-left: 48px;
    border: 1px solid #000000;
    text-align : center;
}
.form_demo #username{
    background: #fff url(zfb.png) no-repeat top left;
    height: 39px;
    border: 1px solid #000000;
}
.form_demo #pwd{
    background: #fff url(zb.png) no-repeat top left;
    height: 39px;
    border: 1px solid #000000;
}
.form_demo [type="submit"]{
    width: 100px;
    height: 38px;
    background-color: rgb(221, 81, 81);
    border: 1px dashed #2c82d3;
    border-radius: 10px;
    color: #fff;
    letter-spacing: 10px;
    text-align: center;
}